package com.mou.boot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 * Created by mou on 2018/5/8.
 * https://www.ibm.com/developerworks/cn/java/spring5-webflux-reactive/index.html
 * @author Mou
 * @date 2018/5/8
 * @since 1.0
 */
@RestController
public class BasicController {

    @GetMapping("/sayHello")
    public Mono<String> sayHello() {
        return Mono.just("hello world!!!");
    }
}
